package tw.miku.protocol.codec.gold;

import org.apache.mina.core.buffer.IoBuffer;

import tw.miku.constants.ProtocalConstants;
import tw.miku.protocol.codec.AbstractRequestMessagePack;

public class GoldCompleteRequestPack extends AbstractRequestMessagePack
{

	public int result;
	
	public GoldCompleteRequestPack(IoBuffer buffer)
	{
		super(buffer);
	}
	
	@Override
	public void decode()
	{
		super.decode();
		buffer.position(4);
		result = buffer.get();

	}

	@Override
	public short getTag()
	{
		return ProtocalConstants.GOLD_COMPLETE;
	}

}
